const Container = () => import('@/components/Container')
const Home = () => import('@/views/Home/Index')
const Login = () => import('@/views/Login/Index')
const Detail = () => import('@/views/Detail/Index')
const NewTopic = () => import('@/views/NewTopic/Index')

const routes = [
  {
    path: '/',
    component: Container,
    redirect: '/home',
    children: [
      {
        path: '/home',
        name: 'Home',
        meta: { title: '首页' },
        component: Home
      },
      {
        path: '/login',
        name: 'Login',
        meta: { title: '登录' },
        component: Login
      },
      {
        path: '/detail',
        name: 'Detail',
        meta: { title: '详情' },
        component: Detail
      },
      {
        path: '/newTopic',
        name: 'NewTopic',
        meta: { title: '新增主题' },
        component: NewTopic
      }
    ]
  }
]

export default routes
